home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / comm / maxs / MaxRexx.lha / MAXREXX / Examples / ExampleDoor.Rexx < prev    next >
Encoding:
OS/2 REXX Batch file  |  1980-03-10  |  1.1 KB  |  62 lines

  1. /*MaxRexx Example Door (MIN MAXREXX VERSION 0.9b)*/
  2. line=arg(1)
  3. port='ADDRESS MAXSERVE'line
  4. interpret port
  5. OPTIONS RESULTS
  6. $NEWLINE
  7. $FCOLOUR 1
  8. $PRINTLN 'Red Text'
  9. $FCOLOUR 2
  10. $PRINTLN 'Green Text'
  11. $FCOLOUR 3
  12. $PRINTLN 'Yellow Text'
  13. $FCOLOUR 4
  14. $PRINTLN 'Blue Text'
  15. $FCOLOUR 5
  16. $PRINTLN 'Pink Text'
  17. $FCOLOUR 6
  18. $PRINTLN 'Cyan Text'
  19. $FCOLOUR 7
  20. $PRINTLN 'White Text'
  21. $NEWLINE
  22. $PRINT 'This'
  23. $NEWLINE
  24. $PRINT '     should'
  25. $NEWLINE
  26. $PRINT '            be'
  27. $NEWLINE
  28. $PRINT '               across'
  29. $NEWLINE
  30. $PRINT '                      several'
  31. $NEWLINE
  32. $PRINT '                              lines.'
  33. $NEWLINE
  34. $PRINTLN 'Press ANY key to clear the screen.'
  35. $HOTKEY
  36. $CLS
  37. $FCOLOUR 1
  38. $PRINTLN 'Please enter some text'
  39. $PRINTLN '[..........]'
  40. $PRINT 'H'
  41. $INPUT 10
  42. $PRINTLN 'You entered: 'result
  43. $NEWLINE
  44. $FCOLOUR 3
  45. $USERSTR 1
  46. $PRINTLN 'I bet your name is... 'result' :)'
  47. $USERVAL 1
  48. $PRINTLN 'and your access level is: 'result
  49. $NEWLINE
  50. $FCOLOUR 7
  51. $BCOLOUR 0
  52. $PRINTLN 'This should be black on white!'
  53. $FCOLOUR 7
  54. $BCOLOUR 0
  55. $PRINTLN 'Lets set the page flag!'
  56. $PAGEFLAG 1
  57. $PRINTLN 'OK lets leave a message!'
  58. $MENUFUNC '16,0,NIL'
  59. $PRINTLN 'BYE BYE'
  60. $HOTKEY
  61. $END
  62.